package Filter;

import java.util.ArrayList;
import java.util.List;

public class SingleCriteria implements  Criteria {
    @Override
    public List<Person> meetCriteria(List<Person> persons) {
        List<Person> people=new ArrayList<>();
        persons.forEach((o)->{
            if (o.getMaritalStatus().equals("0"))
                people.add(o);
        });
        return people;
    }
}
